﻿//-----------------------------------------------------------------------
// <copyright file="TeamFoundationServerEntity.cs" company="CodePlex">
//     Copyright (c) Doug Holland, CodePlex. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace CodePlex.Diagnostics.Model
{
    using System;

    using CodePlex.Diagnostics.Contracts;

    /// <summary>
    /// Represents an instance of Microsoft Team Foundation Server where exceptions and log entries are promoted to work items.
    /// </summary>
    public partial class TeamFoundationServerEntity
    {
        #region public TeamFoundationServerEntity()

        /// <summary>
        /// Initializes a new instance of the <see cref="T:TeamFoundationServerEntity"/> class.
        /// </summary>
        public TeamFoundationServerEntity()
        {
        }

        #endregion

        #region public TeamFoundationServerEntity(TeamFoundationServerDataContract contract)

        /// <summary>
        /// Initializes a new instance of the <see cref="T:TeamFoundationServerEntity"/> class.
        /// </summary>
        /// <param name="contract">An instance of the <see cref="T:TeamFoundationServerDataContract"/> class to be used to construct an instance of the <see cref="T:TeamFoundationServerEntity"/> class.</param>
        public TeamFoundationServerEntity(TeamFoundationServerDataContract contract)
        {
            this.Uri = contract.Uri.AbsoluteUri;
        }

        #endregion
    }
}